<table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="300" align="left" valign="top"><h4>ชื่อและที่อยู่ผู้ส่ง</h4>
            <p>
            <?php
            if ($data->attributes['sender'] == 0) {
                $sender_id = 2;
            } else {
                $sender_id = $data->attributes['sender'];
            }
            $Dealers_Text = Dealers::model()->findByPk($sender_id);
            if($sender_id == 2){
                echo '<img src="/images/logo.jpg" width="136" height="75" alt="LoGo"/><br/>';
            }
            echo $Dealers_Text->attributes['address'];
            ?>
            <br/>
            </p>
            <strong>รายการสินค้า (ID <?php echo $data->id;?>)</strong><br/>
            <?php echo nl2br(CHtml::encode($data->products))?>    </td>
        <td width="400" align="left" valign="top"><img src="/images/w.jpg" width="261" height="150" alt="w"/>
            <h4>กรุณาส่ง</h4>
            <?php echo CHtml::encode($data->customer)?><br/>
            <?php echo nl2br(CHtml::encode($data->address))?>    </td>
    </tr>
</table>
<br/><br/>